package com.spa.infrastructure.repository.service;

import com.github.yulichang.base.MPJBaseServiceImpl;
import com.spa.infrastructure.repository.mapper.MsgSmsLogMapper;
import com.spa.infrastructure.repository.po.MsgSmsLogPO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
@Slf4j
public class MsgSmsLogRepositoryService extends MPJBaseServiceImpl<MsgSmsLogMapper, MsgSmsLogPO> {


    public boolean saveContent(MsgSmsLogPO entityPO) {
//        entityPO.setCreateBy(SessionUtil.getUser().getExtUserId());
        entityPO.setCreateTime(new Date());
        return save(entityPO);
    }
}
